package com.dreem.facade;

/**
 * @program: DesignParrtern
 * @description: 家庭影院
 * @author: Peng
 * @create: 2021-02-21  10:36
 **/
public class HomePlay {
    private DVDPlayer dvdPlayer = DVDPlayer.INSTANCE;
    private Popcorn popcorn = Popcorn.INSTANCE;

    public HomePlay(){}

    public void start(){
        dvdPlayer.on();
        popcorn.on();
    }
    public void stop(){
        dvdPlayer.off();
        popcorn.off();
    }
    public void pause(){
        dvdPlayer.pause();
        popcorn.pause();
    }
}
